import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue')
  },
  {
    path: '/chapter-1',
    name: 'Chapter1',
    component: () => import(/* webpackChunkName: "about" */ '../views/chapter1.vue')
  },
  {
    path: '/chapter-2',
    name: 'Chapter2',
    component: () => import(/* webpackChunkName: "about" */ '../views/chapter2.vue')
  },
  {
    path: '/chapter-3',
    name: 'Chapter3',
    component: () => import(/* webpackChunkName: "about" */ '../views/chapter3.vue')
  },
  {
    path: '/chapter-4',
    name: 'Chapter4',
    component: () => import(/* webpackChunkName: "about" */ '../views/chapter4.vue')
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
